package com.xinghou.platform.entity.req;

import com.xinghou.platform.model.main.FavoriteCard;
import com.xinghou.platform.model.main.FavoriteSubject;

/**
 * Created by qingshengzheng on 16/6/23.
 */
public class FavoriteReq extends BaseReq{



    public Long userid; //用户id
    public Long createtime;//创建时间
    public String fromno;//查询开始no
    public String pageno;
    public String cardid;//卡片id
    public String subjectid;//话题id
    public String pagesize;


    public FavoriteCard toFavoriteCard()
    {
        FavoriteCard favoriteCard=new FavoriteCard();
        favoriteCard.uid=userid;
        favoriteCard.createtime=createtime;
        favoriteCard.cardid=Long.parseLong(cardid);
        return favoriteCard;
    }
    public FavoriteSubject toFavoriteSubject()
    {
        FavoriteSubject subject=new FavoriteSubject();
        subject.uid=userid;
        subject.subjectid=Long.parseLong(subjectid);
        subject.createtime=createtime;
        return subject;
    }




    public void setUid(Long uid) {
        this.userid = uid;
    }

    public Long getCreatetime() {
        return createtime;
    }

    public void setCreatetime(Long createtime) {
        this.createtime = createtime;
    }


    public String getCardid() {
        return cardid;
    }

    public void setCardid(String cardid) {
        this.cardid = cardid;
    }

    public String getSubjectid() {
        return subjectid;
    }

    public void setSubjectid(String subjectid) {
        this.subjectid = subjectid;
    }

    public Long getUserid() {
        return userid;
    }

    public void setUserid(Long userid) {
        this.userid = userid;
    }

    public String getFromno() {
        return fromno;
    }

    public void setFromno(String fromno) {
        this.fromno = fromno;
    }

    public String getPageno() {
        return pageno;
    }

    public void setPageno(String pageno) {
        this.pageno = pageno;
    }

    public String getPagesize() {
        return pagesize;
    }

    public void setPagesize(String pagesize) {
        this.pagesize = pagesize;
    }
}
